package com.peanut.dao;

import com.peanut.model.User;
import org.springframework.stereotype.Repository;

import java.util.List;
@Repository
public interface UserDao {
    User getUserById(Integer id);

    void addUser(User user);

    User delById(Integer id);

    User update(User user);

    List<User> list();
}
